import React, { Component } from 'react'
import '../index.css'
export class like extends Component {
  render() {
    return (
      <span className={this.props.item.attitude===1?"like liked":'like'} onClick={()=>{this.props.like(this.props.item.id,this.props.item.attitude===1?0:1)}}>
                  <i className="icon"/>
                </span>
    )
  }
}

export default like